package org.yzhang3.data.common;

public class Constants {

	public static final boolean isPrintEnable = false;
	
	public static final String BINARY_ZERO = "0";
	public static final String BINARY_ONE = "0";
	
	public static final int BITS_PRE_BYTE = 8;
	public static final int BITS_PRE_2BYTE = BITS_PRE_BYTE * 2;
	public static final int BITS_PRE_3BYTE = BITS_PRE_BYTE * 3;
	public static final int BITS_PRE_4BYTE = BITS_PRE_BYTE * 4;
	
	public static final int BITS_PRE_INT = BITS_PRE_4BYTE;
	
	public static final int BYTE_MASK[] = { 
			0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F, 
			0xFF, 0x1FF, 0x3FF, 0x7FF, 0xFFF, 0x1FFF, 0x3FFF, 0x7FFF, 
			0xFFFF, 0x1FFFF, 0x3FFFF, 0x7FFFFF, 0xFFFFF, 0x1FFFFF, 0x3FFFFF, 0x7FFFFF, 
			0xFFFFFF, 0x1FFFFFF, 0x3FFFFFF, 0x7FFFFFF, 0xFFFFFFF, 0x1FFFFFFF, 0x3FFFFFFF, 0x7FFFFFFF, 
			0xFFFFFFFF 
	};

	public static int[] BINARY_POWS = new int[]{
		(int) Math.pow(2, 0), (int) Math.pow(2, 1), (int) Math.pow(2, 2), (int) Math.pow(2, 3), 
		(int) Math.pow(2, 4), (int) Math.pow(2, 5), (int) Math.pow(2, 6), (int) Math.pow(2, 7), 
		(int) Math.pow(2, 8), (int) Math.pow(2, 9), (int) Math.pow(2, 10), (int) Math.pow(2, 11), 
		(int) Math.pow(2, 12), (int) Math.pow(2, 13), (int) Math.pow(2, 14), (int) Math.pow(2, 15), 
		(int) Math.pow(2, 16), (int) Math.pow(2, 17), (int) Math.pow(2, 18), (int) Math.pow(2, 19), 
		(int) Math.pow(2, 20), (int) Math.pow(2, 21), (int) Math.pow(2, 22), (int) Math.pow(2, 23), 
		(int) Math.pow(2, 24), (int) Math.pow(2, 25), (int) Math.pow(2, 26), (int) Math.pow(2, 27), 
		(int) Math.pow(2, 28), (int) Math.pow(2, 29), (int) Math.pow(2, 30), (int) Math.pow(2, 31), 
	};
	
	public static void main(String[] args) {
		System.out.println(Integer.valueOf("FF", 16));
	}
	
}
